<template>
  <div class="br-layout-relative">
      <One v-if="template===0"></One>
      <Two v-if="template===1"></Two>
      <Three v-if="template===2"></Three>
  </div>
</template>

<script>
  import One from './item/one/index.vue'
  import Two from './item/two/index.vue'
  import Three from './item/three/index.vue'
  import {
    mapGetters
  } from 'vuex'
  export default {
    components: {
      One,
      Two,
      Three
    },
    props: {},
    computed: {
      ...mapGetters(['sidebar', 'connection']),
      isHeight() {
        return this.sidebar.height;
      },
      template() {
        return this.connection.template;
      }
    },
    data() {
      return {}
    },
    methods: {},
    created() {},
    mounted() {},
    beforeDestroy() {
      this.$store.commit("CONNECTION_TEMPALTE", 0);
      this.$store.commit("CONNECTION_ITEM", null);
      this.$store.commit("CONNECTION_DATABASEINDEX", 0);
    }
  }
</script>

<style lang="less" scoped>
</style>
